import RPi.GPIO as gpio
import time

gpio.setmode(gpio.BCM)

IN1 = 17
IN2 = 18
IN3 = 23
IN4 = 24

gpio.setup(IN1, gpio.OUT)
gpio.setup(IN2, gpio.OUT)
gpio.setup(IN3,  gpio.OUT)
gpio.setup(IN4, gpio.OUT)
gpio.output(IN1, True)
gpio.output(IN2, False)
gpio.output(IN3, True)
gpio.output(IN4, False)

time.sleep(3)
gpio.cleanup()
